package com.matt.service;

import com.matt.domain.LeadsHistory;
import com.matt.foundation.query.LeadsHistoryQuery;
import com.matt.foundation.vo.LeadsHistoryVo;
import org.springframework.data.domain.Page;


/**
 * ************************
 * Created by Ron
 * from com.matt
 * on 2018/6/13 0013.
 * ***********************
 */
public interface LeadsHistoryService {

    LeadsHistory save(String imgUrl, LeadsHistory leadsHistory);

    LeadsHistory saveVisit(String imgUrl, LeadsHistory leadsHistory);

    Page<LeadsHistoryVo> findByLeadsId(String leadsId, LeadsHistoryQuery leadsHistoryQuery);

    Page<LeadsHistoryVo> findByVisitId(String leadsId, LeadsHistoryQuery leadsHistoryQuery);

    Page<LeadsHistoryVo> findByPalletId(String leadsId, LeadsHistoryQuery leadsHistoryQuery);

    Page<LeadsHistoryVo> findByClienteleId(String clientelesId, LeadsHistoryQuery leadsHistoryQuery);

    Page<LeadsHistoryVo> findAll(String clientelesId, LeadsHistoryQuery leadsHistoryQuery);
}
